package com.huawei.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Systemdictionary {

    private Long id;

    private String sn;

    private String title;

    private String intro;

    public String getJson(){
        Map<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("sn",sn);
        map.put("title",title);
        map.put("intro",intro);
        return JSON.toJSONString(map);
    }
}